package com.zhanghe;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
	 @Autowired
	 TestService testService;
	 @RequestMapping(value = "/add", method = RequestMethod.GET)
	 public String add() {
	     return testService.add(1,1);
	 }
	 
	 /*@RequestMapping(value = "/add2", method = RequestMethod.GET)
	 public String add2() {
	     return testService.addService();
	 }*/
}
